package cn.ytnet.shangyun.service.basic.dao.impl;

import org.hibernate.cfg.DefaultNamingStrategy;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by cyongk on 2016/1/16.
 */
@Component
public class GoodsNamingStrategy extends DefaultNamingStrategy {

    @Autowired
    public static final GoodsNamingStrategy INSTANCE = new GoodsNamingStrategy();


    @Override
    public String classToTableName(String className) {
        //if(className.equals("cn.ytnet.shangyun.service.basic.entity.GoodsEntity"));
        return "TE_" + className;
    }
}
